home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectSound / VoiceManagement / readme.txt < prev    next >
Encoding:
Text File  |  2001-10-10  |  1.4 KB  |  41 lines

  1. //-----------------------------------------------------------------------------
  2. // 
  3. // Sample Name: VoiceManagement Sample
  4. // 
  5. // Copyright (c) 1999-2001 Microsoft Corporation. All rights reserved.
  6. // 
  7. //-----------------------------------------------------------------------------
  8.  
  9.  
  10. Description
  11. ===========
  12.   The VoiceManagement sample shows how to implement dynamic voice management 
  13.   when creating DirectSound secondary buffers.
  14.  
  15. Path
  16. ====
  17.   Source: DXSDK\Samples\Multimedia\DSound\VoiceManagement
  18.  
  19.   Executable: DXSDK\Samples\Multimedia\DSound\Bin
  20.  
  21. User's Guide
  22. ============
  23.   Load a wave file by clicking Sound File. Select Voice Allocation Flags, 
  24.   Buffer Priority, and Voice Management Flags options. Note that the effect 
  25.   of the selected options is described under Expected Behavior. Create the 
  26.   buffer and play the sound by clicking Play. 
  27.  
  28. Programming Notes
  29. =================
  30.   For a simpler example of how to setup a DirectSound buffer without 
  31.   voice management flags, see the PlaySound sample. 
  32.   
  33.   To use voice management flags, the buffer must be created using 
  34.   DSBCAPS_LOCDEFER otherwise DirectSound will not be able to dynamically 
  35.   place the buffer in either hardware or software at runtime. 
  36.   
  37.   When playing the buffer just call IDirectSoundBuffer::Play with a 
  38.   valid combination of voice management flags.  Run the sample to observe
  39.   the expected result of any combination of flags.
  40.  
  41.